package com.example.demo3.controller;

import com.example.demo3.bean.ClassInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {


    @Autowired
    ClassInfo classinfo;


    @ResponseBody
    @RequestMapping("/")
    public String index() {
        return "weclome!";
    }


    @ResponseBody
    @RequestMapping("/classinfo")
    public Object classinfo() {
        return classinfo;
    }


}